﻿using System.Collections.Generic;

namespace Bilibili.Model.Bangumi
{
    public sealed class BangumiHome
    {
        public BangumiHome Result { get; set; }
        public BangumiHome Recommend_Cn { get; set; }
        public BangumiHome Recommend_Jp { get; set; }
        public List<BangumiHome> Foot { get; set; }
        public string Cover { get; set; }
        public string Cursor { get; set; }
        public string Desc { get; set; }
        public int Id { get; set; }
        public int Is_New { get; set; }
        public string Link { get; set; }
        public string OnDt { get; set; }
        public string Title { get; set; }
        public List<BangumiHome> Recommend { get; set; }
        public string Favourites { get; set; }
        public int Is_Started { get; set; }
        public int Is_Finish { get; set; }
        public long? Last_Time { get; set; }
        public string Newest_Ep_Index { get; set; }
        public int Season_Id { get; set; }
        public int Season_Status { get; set; }
        public int Watching_Count { get; set; }
        public string FavouritesCount
        {
            get
            {
                double.TryParse(Favourites, out double d);
                d /= 10000;
                return d >= 1 ? d.ToString("0.0") + "万" : Favourites;
            }
        }
    }
}